Use the history command to view and clear Terminal history You don't have to view history in order to delete it, but if you want to, type history in a Terminal window. You'll see a list of commands you've previously typed. To delete history, type his
Here we will look into the Terminal history, and how to clear it in Bash and Zsh. We will also discuss a smart way to manage your Terminal and your overall Mac ...